<?php 
	if($_SERVER["REQUEST_METHOD"]=="POST") {
		$color_id = strip_tags($_POST['color_id']);
		$sizeOptions	= _u(sqlOptions("SELECT `i`.`size_id` AS `value` , `s`.`title` AS `label` FROM `tbl_product_item` AS `i` LEFT JOIN `tbl_size` AS `s` ON `i`.`size_id` = `s`.`size_id` WHERE `i`.`color_id` = '$color_id' ORDER BY `i`.`size_id` ASC"),'size');
		echo $sizeOptions;
		exit;
	}
?>